<extend name="Public/printbase" />
<block name="body">
    <div>
        <table width="100%" class="table">
            <tr>
                <td align="center" valign="middle" colspan="4" style="font-size: 30px;">门店消耗品申请单</td>
            </tr>
            <tr style="margin-top:10px;">
                <td>货流单号:</td>
                <td style="font-weight: 700">{$_list.0.batch}</td>
                <td>申请门店</td>
                <td style="font-weight: 700">{$_list.0.dpid|get_subpro_department_name}</td>
            </tr>
            <tr>
                <td>制单门店：</td>
                <td style="font-weight: 700">果然100总部</td>
                <td>制单时间：</td>
                <td style="font-weight: 700"><php>echo time_format(time());</php></td>
            </tr>
        </table>
        <table width="100%" class="table table-bordered text-center" style="margin-top: 20px;">
            <tr>
                <td>行号</td>
                <td>商品名称</td>
                <td>单位</td>
                <td>订货数量</td>
                <td>实发数量</td>
                <td>单价</td>
                <td>小计</td>
            </tr>
            <volist name="_list" id="vo">
                <tr>
                    <td >{$i}</td>
                    <td>{$vo.BIN|get_subpro_product_name}</td>
                    <td>{$vo.unit}</td>
                    <td>{$vo.cnt}</td>
                    <td>{$vo.realcnt}</td>
                    <td>{$vo.unitprice}</td>
                    <td>{$vo.totalprice}</td>
                </tr>
            </volist>
        </table>
    </div>
    
    <div class="text-center" style="padding: 50px;">
        <button class="btn btn-primary hidden-print" onclick="javascrīpt:window.print()">打印</button>
        <button class="btn btn-primary hidden-print"  onclick="javascript:window.close()">关闭</button>
    
    </div>
</block>